export function loadPage(page,resolve) {
	let dir=page.substring(0,page.lastIndexOf("/"));
	let name=page.substring(page.lastIndexOf("/"));
	if (dir.startsWith("/developer")) return require(["@/views/developer"+page.replace("/developer","")], resolve);
	else if (dir.startsWith("/ruoyi")) return require(["@/views/ruoyi"+page.replace("/ruoyi","")], resolve);
	else if (dir=="/psi/autooffice") return require(["@/views/psi/autooffice"+name], resolve);
	else if (dir=="/psi/main") return require(["@/views/psi/main"+name], resolve);
	else if (dir=="/psi/produce") return require(["@/views/psi/produce"+name], resolve);
	else if (dir=="/psi/product") return require(["@/views/psi/product"+name], resolve);
	else if (dir=="/psi/sale") return require(["@/views/psi/sale"+name], resolve);
	else if (dir=="/psi/supplychainmana") return require(["@/views/psi/supplychainmana"+name], resolve);

}